Save popwin functions as comments
authorjustbur <justin@burkett.cc>
Fri, 3 Jul 2015 12:09:27 +0000 (08:09 -0400)
committerjustbur <justin@burkett.cc>
Fri, 3 Jul 2015 12:09:27 +0000 (08:09 -0400)
which-key.el

index 95a5f76f9b621234d397727917de013240038d7e..4f2220436d185fc22a3243b54e6f08f77b67a0c3 100644 (file)
@@ -212,6 +212,18 @@ Finally, show the buffer."
   (when (window-live-p which-key--window)
     (delete-window which-key--window)))
 
+;; (defun which-key/show-buffer (height width)
+;;   (popwin:popup-buffer which-key-buffer-name
+;;                        :width width
+;;                        :height height
+;;                        :noselect t
+;;                        :position which-key-buffer-position))
+
+;; (defun which-key/hide-buffer ()
+;;   "Like it says :\)"
+;;   (when (eq popwin:popup-buffer (get-buffer which-key--buffer))
+;;     (popwin:close-popup-window)))
+
 (defun which-key/turn-on-timer ()
   "Activate idle timer."
   (setq which-key--timer